import request from '@/utils/request'

// 查询增值税发票类型列表
export function listInvoiceType(query) {
  return request({
    url: '/system/InvoiceType/list',
    method: 'get',
    params: query
  })
}

// 查询增值税发票类型详细
export function getInvoiceType(invoiceTypeId) {
  return request({
    url: '/system/InvoiceType/' + invoiceTypeId,
    method: 'get'
  })
}

// 新增增值税发票类型
export function addInvoiceType(data) {
  return request({
    url: '/system/InvoiceType',
    method: 'post',
    data: data
  })
}

// 修改增值税发票类型
export function updateInvoiceType(data) {
  return request({
    url: '/system/InvoiceType',
    method: 'put',
    data: data
  })
}

// 删除增值税发票类型
export function delInvoiceType(invoiceTypeId) {
  return request({
    url: '/system/InvoiceType/' + invoiceTypeId,
    method: 'delete'
  })
}
